package com.reading.common.persistence.view;

import com.reading.common.entity.view.BookLike;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;

@Resource
public interface BookLikeMapper {

    Integer insert(BookLike record);

    Integer delete(BookLike record);

    Integer selectBookLikeCount(@Param("bookId") Integer bookId);

    Integer selectBookAndUserLikeStatus(@Param("bookId") Integer bookId, @Param("userId") Integer userId);
}